﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RegisterPage.aspx.cs" Inherits="DataAnalyseTool.Web.Pages.RegisterPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../../Resources/Styles/easyui.css" rel="stylesheet" type="text/css" />
    <link href="../../Resources/Styles/icon.css" rel="stylesheet" type="text/css" />
    <link href="../../Resources/Styles/Reset.css" rel="stylesheet" type="text/css" />
    <link href="../../Resources/Styles/Register.css" rel="stylesheet" type="text/css" />
    <script src="../../Resources/Scripts/jquery-1.6.min.js" type="text/javascript"></script>
    <script src="../../Resources/Scripts/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="../../Resources/Scripts/easyui-lang-zh_CN.js" type="text/javascript"></script>
    <script src="../../Resources/Scripts/RegisterColumnInit.js" type="text/javascript"></script>
    <script src="../../Resources/Scripts/Register.js" type="text/javascript"></script>
</head>
<body style="overflow-x: hidden; overflow-y: hidden">
    <input id="containsProFields" type="hidden" value='<%=containsProFields%>' name="containsProFields" />
    <input id="webCurrentUserName" type="hidden" value='<%=webCurrentUserName%>' name="webCurrentUserName" />
    <div id="newRegisterDlg" class="easyui-dialog" style="width: 740px; height: 400px;
        top: 20px;" closed="true" buttons="#dlg-buttons">
        <form id="fm" method="post" novalidate>
        <fieldset style="padding-top: 10px;">
            <legend>字段信息</legend>
            <div class="" style="">
                <table class="EditableField" style="">
                    <tr>
                        <td class="style13">
                            QQ账户：
                        </td>
                        <td class="inputtd">
                            <input id="QQ" name="QQ" class="easyui-validatebox" missingmessage="QQ账户不能为空!">
                        </td>
                        <td class="style6">
                            旺旺账户：
                        </td>
                        <td class="style14">
                            <input name="Wangwang" id="Wangwang" class="easyui-validatebox" missingmessage="旺旺账户不能为空!">
                        </td>
                        <td>
                            关联QQ：
                        </td>
                        <td>
                            <input id="txtQQRelation" name="QQRelation" class="easyui-validatebox">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            银行户名：
                        </td>
                        <td>
                            <input name="BankName" id="BankName" class="easyui-validatebox" missingmessage="返款支付宝姓名、财付通姓名和该项不能同时为空!">
                        </td>
                        <td class="style13">
                            银行账号：
                        </td>
                        <td colspan="3">
                            <input style="width: 310px" name="BankAccount" id="BankAccount" class="easyui-validatebox"
                                missingmessage="返款支付宝、财付通账户和该项不能同时为空!">
                        </td>
                    </tr>
                    <tr>
                        <td class="style13">
                            银行类别：
                        </td>
                        <td>
                            <input id="BankType" name="BankType" class="easyui-validatebox">
                        </td>
                        <td class="style7">
                            店铺：
                        </td>
                        <td>
                            <input name="ShopID" id="ShopName" style="width: 100px; cursor: pointer" required="true"
                                valuefield="ShopID" textfield="ShopName" missingmessage="店铺不能为空!"></input>
                        </td>
                        <td>
                            来源：
                        </td>
                        <td>
                            <input name="Source" id="Source" class="easyui-validatebox">
                        </td>
                    </tr>
                    <tr>
                        <td class="style13">
                            支付宝姓名：
                        </td>
                        <td class="inputtd">
                            <input name="ZhifubaoName" id="ZhifubaoName" class="easyui-validatebox" missingmessage="支付宝姓名不能为空!">
                        </td>
                        <td class="style6">
                            返款支付宝账户：
                        </td>
                        <td class="style14">
                            <input name="RebateZhifubao" id="RebateZhifubao" missingmessage="当财付通账户为空时该项可为空!"
                                class="easyui-validatebox">
                        </td>
                        <td class="style7">
                            返款支付宝姓名：
                        </td>
                        <td>
                            <input name="RebateZhifubaoName" missingmessage="当财付通姓名为空时该项不能为空!" id="RebateZhifubaoName"
                                class="easyui-validatebox">
                        </td>
                    </tr>
                    <tr>
                        <td class="style7">
                            支付宝账户：
                        </td>
                        <td style="inputtd">
                            <input name="ZhifubaoAccount" id="ZhifubaoAccount" class="easyui-validatebox" missingmessage="支付宝账户不能为空!">
                        </td>
                        <td class="style13">
                            财付通账户：
                        </td>
                        <td class="inputtd">
                            <input name="CaifutongAccount" id="CaifutongAccount" class="easyui-validatebox">
                        </td>
                        <td class="style6">
                            财付通姓名：
                        </td>
                        <td class="style14">
                            <input id="CaifutongName" name="CaifutongName" class="easyui-validatebox">
                        </td>
                    </tr>
                    <tr>
                        <td class="style13">
                            金额：
                        </td>
                        <td class="inputtd">
                            <input name="Cash" id="Cash" class="easyui-validatebox">
                        </td>
                        <td class="style6">
                            手机：
                        </td>
                        <td class="style14">
                            <input name="Cellphone" id="Cellphone" class="easyui-validatebox">
                        </td>
                        <td class="style7">
                            固定电话：
                        </td>
                        <td>
                            <input name="Fixphone" id="Fixphone" class="easyui-validatebox" missingmessage="手机号码和该项不能同时为空!">
                        </td>
                    </tr>
                    <tr>
                        <td class="style13">
                            省：
                        </td>
                        <td class="inputtd">
                            <select id="province" name="province" style="width: 100px;">
                            </select>&nbsp;
                            <input type="hidden" id="hdprovince" name="hdprovince" />
                        </td>
                        <td class="style6">
                            市：
                        </td>
                        <td class="style14">
                            <select id="city" style="width: 100px" name="city">
                            </select>&nbsp;
                            <input type="hidden" id="hdcity" name="hdcity" />
                        </td>
                        <td class="style7">
                            区：
                        </td>
                        <td>
                            <select id="district" style="width: 100px" name="district">
                            </select>&nbsp;
                            <input type="hidden" name="hddistrict" id="hddistrict" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style13">
                            收件人姓名：
                        </td>
                        <td class="inputtd">
                            <input name="ReceiveName" id="ReceiveName" class="easyui-validatebox" missingmessage="收件人姓名不能为空!">
                        </td>
                        <td class="style6">
                            收件人地址：
                        </td>
                        <td colspan="3">
                            <input style="width: 380px" name="ReceiveAddress" id="ReceiveAddress" class="easyui-validatebox">
                        </td>
                    </tr>
                    <tr>
                        <td class="style13">
                            收件人手机：
                        </td>
                        <td class="inputtd">
                            <input name="ReceiveCellphone" id="ReceiveCellphone" class="easyui-validatebox">
                        </td>
                        <td class="style6">
                            收件人固定电话：
                        </td>
                        <td class="style14">
                            <input name="ReceiveFixphone" id="ReceiveFixphone" class="easyui-validatebox">
                        </td>
                        <td class="style7">
                            日期：
                        </td>
                        <td>
                            <input id="Date" name="Date" class="easyui-datebox" missingmessage="日期不能为空!">
                        </td>
                    </tr>
                    <tr>
                        <td class="style13">
                            备注：
                        </td>
                        <td colspan="5">
                            <textarea id="beizhu" name="beizhu" style="width: 90%; height: 30px;"></textarea>
                        </td>
                    </tr>
                </table>
            </div>
        </fieldset>
        </form>
    </div>
    <div id="dlg-buttons">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-ok" onclick="saveRegister()">
            保存</a> <a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-cancel"
                onclick="javascript:$('#newRegisterDlg').dialog('close')">取消</a>
    </div>
    <form runat="server" id="aa" name="aaa">
    <div>
        <fieldset>
            <legend>搜索</legend>
            <table style="font-size: 12px;">
                <tr>
                    <td>
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td colspan="4">
                        日期从:<input id="datefrom" class="easyui-datebox">到:
                        <input id="dateto" class="easyui-datebox">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 金额:<input
                            id="pricefrom" name="UserName" class="easyui-validatebox">
                        ---
                        <input name="UserName" id="priceto" class="easyui-validatebox">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <%--不限制金额<input id="nolimitprice" type="checkbox" />--%>
                        登记时间>=<input name="LimitDays" id="LimitDays" value="0" style="width: 30px;" class="easyui-validatebox">天
                        &nbsp;&nbsp;&nbsp;&nbsp来源模糊查询：<input id="chbSourceQuery" name="chbSourceQuery" type="checkbox" />
                    </td>
                </tr>
                <tr>
                    <td align="left" colspan="4" style="">
                        <div style="float: left; padding-top: 25px;">
                            搜索关键字:</div>
                        <textarea id="keyword" name="keywords" style="height: 84px; width: 300px; float: left;"></textarea>
                        <table>
                            <tr>
                                <td>
                                    店铺：
                                </td>
                                <td>
                                    <input name="ShopID" id="allShops" style="width: 100px; cursor: pointer" valuefield="ShopID"
                                        textfield="ShopName"></input>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    用户：
                                </td>
                                <td>
                                    <input name="UserID" id="allUsers" style="width: 100px; cursor: pointer" valuefield="UserID"
                                        textfield="UserName"></input>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <input id="txtTotalCash" type="text" disabled="disabled" style="width: 200px;" />
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <input id="txtOrderCount" type="text" disabled="disabled" style="width: 200px;" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td colspan="4">
                        <%--  忽略关键字:
                        <input name="UserName" class="easyui-validatebox" />--%>
                        <a href="#" iconcls="icon-search" onclick="Search()" class="easyui-linkbutton">搜索</a>
                        <a href="#" iconcls="icon-save" onclick="showdiv()" class="easyui-linkbutton">设定搜索范围</a>
                        <a href="#" iconcls="icon-edit" onclick="copyRegister()" class="easyui-linkbutton">登记</a>
                        <a href="#" iconcls="icon-add" class="easyui-linkbutton" onclick="newRegister()">新增登记</a>
                        <a href="#" iconcls="icon-remove" class="easyui-linkbutton" onclick="deleteRegister()">
                            删除登记</a>
                        <%--  <asp:FileUpload ID="fAddress" runat="server" />
                       <asp:Button ID="btnImport" runat="server" OnClientClick="return importCheck();" OnClick="lbtnImport_Click"
              Text="导入地址" />
            <asp:Button ID="btnImportAll" runat="server" OnClientClick="return importCheck();"
              OnClick="lbtnImportAll_Click" Text="导入" />
            <asp:Button ID="btnExport" runat="server" OnClick="lbtnExport_Click" Text="导出" />--%>
                    </td>
                </tr>
            </table>
        </fieldset>
    </div>
    <div id="bg" class="bg1">
    </div>
    <div id="show" class="show1">
        <div style="float: right;">
            <a href="#" class="easyui-linkbutton" iconcls="icon-cancel" onclick="hidediv()">关闭</a>
        </div>
        <fieldset>
            <legend>设定搜索范围</legend>
            <table style="width: 100%">
                <tr>
                    <td>
                        QQ
                    </td>
                    <td>
                        <input id="chbQQ" name="QQ" type="checkbox" value="QQ" />
                    </td>
                    <td>
                        旺旺
                    </td>
                    <td>
                        <input id="chbwangwang" name="Wangwang" type="checkbox" value="Wangwang" />
                    </td>
                    <td>
                        支付宝账号
                    </td>
                    <td>
                        <input id="chbZhifubao" name="ZhifubaoAccount" type="checkbox" value="ZhifubaoAccount" />
                    </td>
                    <td>
                        支付宝名字
                    </td>
                    <td>
                        <input id="chbZhifubaoName" name="ZhifubaoName" type="checkbox" value="ZhifubaoName" />
                    </td>
                    <td>
                        返款支付宝
                    </td>
                    <td>
                        <input id="chbRebateZhifubao" name="RebateZhifubao" type="checkbox" value="RebateZhifubao" />
                    </td>
                </tr>
                <tr>
                    <td>
                        返款支付宝名字
                    </td>
                    <td>
                        <input id="chbRebateZhifubaoName" name="RebateZhifubaoName" type="checkbox" value="RebateZhifubaoName" />
                    </td>
                    <td>
                        财付通账号
                    </td>
                    <td>
                        <input id="chbCaifutongAccount" name="CaifutongAccount" type="checkbox" value="CaifutongAccount" />
                    </td>
                    <td>
                        财付通名字
                    </td>
                    <td>
                        <input id="chbCaifutongName" name="CaifutongName" type="checkbox" value="CaifutongName" />
                    </td>
                    <td>
                        店铺名字
                    </td>
                    <td>
                        <input id="chbShopID" name="ShopID" type="checkbox" value="ShopID" />
                    </td>
                    <td>
                        现金
                    </td>
                    <td>
                        <input id="chbCash" name="Cash" type="checkbox" value="Cash" />
                    </td>
                </tr>
                <tr>
                    <td>
                        手机
                    </td>
                    <td>
                        <input id="chbCellphone" name="Cellphone" type="checkbox" value="Cellphone" />
                    </td>
                    <td>
                        固定电话
                    </td>
                    <td>
                        <input id="chbFixphone" name="Fixphone" type="checkbox" value="Fixphone" />
                    </td>
                    <td>
                        接收者名字
                    </td>
                    <td>
                        <input id="chbReceiveName" name="ReceiveName" type="checkbox" value="ReceiveName" />
                    </td>
                    <td>
                        接收者地址
                    </td>
                    <td>
                        <input id="chbReceiveAddress" name="ReceiveAddress" type="checkbox" value="ReceiveAddress" />
                    </td>
                    <td>
                        接收者手机
                    </td>
                    <td>
                        <input id="chbReceiveCellphone" name="ReceiveCellphone" type="checkbox" value="ReceiveCellphone" />
                    </td>
                </tr>
                <tr>
                    <td>
                        接收者固定电话
                    </td>
                    <td>
                        <input id="chbReceiveFixphone" name="ReceiveFixphone" type="checkbox" value="ReceiveFixphone" />
                    </td>
                    <td>
                        日期
                    </td>
                    <td>
                        <input id="chbDate" name="Date" type="checkbox" value="Date" />
                    </td>
                    <td>
                        省
                    </td>
                    <td>
                        <input id="chbProvince" name="Province" type="checkbox" value="Province" />
                    </td>
                    <td>
                        城市
                    </td>
                    <td>
                        <input id="chbCity" name="City" type="checkbox" value="City" />
                    </td>
                    <td>
                        区
                    </td>
                    <td>
                        <input id="chbDistrict" name="District" type="checkbox" value="District" />
                    </td>
                </tr>
                <tr>
                    <td>
                        备注
                    </td>
                    <td>
                        <input id="chbBeizhu" name="Beizhu" type="checkbox" value="Beizhu" />
                    </td>
                    <td>
                        银行账号
                    </td>
                    <td>
                        <input id="chbBankAccount" name="BankAccount" type="checkbox" value="BankAccount" />
                    </td>
                    <td>
                        银行户名
                    </td>
                    <td>
                        <input id="chbBankName" name="BankName" type="checkbox" value="BankName" onclick="setQQCheckIsTrue()" />
                    </td>
                    <td>
                        创建者
                    </td>
                    <td>
                        <input id="chbCreatedBy" name="CreatedBy" type="checkbox" value="CreatedBy" />
                    </td>
                    <td>
                        银行类型
                    </td>
                    <td>
                        <input id="chbBankType" name="BankType" type="checkbox" value="BankType" />
                    </td>
                </tr>
                <tr>
                    <td>
                        来源
                    </td>
                    <td>
                        <input id="chbSource" name="Source" type="checkbox" value="Source" />
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="8">
                        <a href="#" iconcls="icon-edit" onclick="saveSearchProjects()" class="easyui-linkbutton" style=" font-size:large">
                            保存搜索项目</a>
                    </td>
                </tr>
            </table>
        </fieldset>
    </div>
    <%--   <div class="fitem" style="width: 1000px">
    </div>--%>
    </form>
    <div style="width: 100%; overflow: scroll;">
        <table id="Register" style="width: 100%;" pagination="true" rownumbers="true" singleselect="true">
        </table>
    </div>
    <div id="bg2" class="bg1">
    </div>
    <div id="myConfirmPasswordDiv" class="myConfirmPasswordDiv" style="">
        <fieldset>
            <legend>密码确认</legend>密码：<input id="txtPasswords" type="password" />
            <br />
            <br />
            <input id="Button1" type="button" style="width: 80px; height: 30px;" value="确定" onclick="GetPasswordByUser()" />&nbsp;&nbsp;&nbsp;&nbsp;<input
                id="Button2" type="button" style="width: 80px; height: 30px;" value="取消" onclick="hidediv()" />
        </fieldset>
    </div>
</body>
</html>
